package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 社工休息时间配置对象 jiajia_worker_time_xx_config
 * 
 * @author 郑鑫
 * @date 2024-04-24
 */
public class JiajiaWorkerTimeXxConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 时间配置表ID */
    @Excel(name = "时间配置表ID")
    @NotNull(message = "时间配置表ID不能为空")
    private Long tcid;

    /** 技师id */
    @Excel(name = "技师id")
    @NotNull(message = "技师id不能为空")
    private Long wid;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 一天时间 */
    @NotNull(message = "一天时间不能为空")
    private String day;

    /** 0休息1接单 */
    @Excel(name = "0休息1接单")
    @NotNull(message = "0休息1接单不能为空")
    private Integer status;

    ///////////////////不在数据库////////////////
    /** 标题名称 */
    private String name;

    /** 开始时间 */
    private String startime;

    /** 结束时间 */
    private String endtime;

    /** 社工名称 */
    private String wName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTcid(Long tcid) 
    {
        this.tcid = tcid;
    }

    public Long getTcid() 
    {
        return tcid;
    }
    public void setWid(Long wid) 
    {
        this.wid = wid;
    }

    public Long getWid() 
    {
        return wid;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartime() {
        return startime;
    }

    public void setStartime(String startime) {
        this.startime = startime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getwName() {
        return wName;
    }

    public void setwName(String wName) {
        this.wName = wName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tcid", getTcid())
            .append("wid", getWid())
            .append("addtime", getAddtime())
            .append("day", getDay())
            .append("status", getStatus())
            .toString();
    }
}
